package com.junior.mybatisredis.mapper;


import com.junior.mybatisredis.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BlogMapper {
    Blog findById(int id);

    List<Blog> findByAuthor(String Author);

    List<Blog> findAll();

    void addOne(Map map);

    void deleteOne(int id);

    void updateById(Blog blog);
}
